import { createRoot } from 'react-dom/client';
import { Provider } from 'react-redux';
import App from './App';
import store from './store/index';

const root = createRoot(document.getElementById('root'));

root.render(
  // 1. 让React和Redux建立连接:
  <Provider
    // 💥Provider组件包住App, 设置store属性
    store={store}
  >
    <App />
  </Provider>
);
